<template>
	<view>
		<view class="name">{{name}}</view>
		<view class="age">{{age}}</view>
		<button @click="back">返回首页</button>
	</view>
</template>

<script setup>
let name = ref('')
let age = ref(0)
onLoad((e)=>{
	console.log(e)
	name = e.name
	age = e.age
})
function back(){
	uni.navigateBack()
}
</script>

<style lang="scss" scoped>
</style>
